export const inputRegList = [{
		label: '邮箱格式',
		value: `/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/`
	},
	{
		label: '手机号码格式',
		value: `/^1[3-9]\d{9}$/`
	},
	{
		label: '座机格式',
		value: `/^0\d{2,3}-?\d{7,8}$/`
	},
	{
		label: '手机和座机格式',
		value: `/^(1[3-9]\d{9})|(0\d{2,3}-?\d{7,8})$/`
	},
	{
		label: '身份证格式',
		value: `/^[1-9]\d{5}(18|19|20)\d{2}(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])\d{3}[\dXx]$/`
	}
]

export const digitRegList = [{
		label: '只能输入正整数',
		value: `/^[1-9]\d*$/`
	},
	{
		label: '保留两位小数的正数',
		value: `/^\d+(\.\d{1,2})?$/`
	},
	{
		label: '保留两位小数的正负数',
		value: `/^-?\d+(\.\d{1,2})?$/`
	},
]
// 模板默认字段配置
export const fieldTemplateList = [{
		type: 'text',
		typeName: '输入框',
		placeholder: '请输入',
		defaultVal: '',
		required: '0',
		regExp: '',
		isRegExp: '0',
		maxlength: '50'
	},
	{
		type: 'textarea',
		typeName: '多行输入框',
		placeholder: '请输入',
		defaultVal: '',
		required: '0',
		maxlength: '500'
	},
	{
		type: 'digit',
		typeName: '数字输入框',
		placeholder: '请输入',
		defaultVal: '',
		required: '0',
		regExp: '',
		isRegExp: '0',
		costomRegExp: ''
	},
	{
		type: 'select',
		typeName: '多选框',
		options: ['选项'],
		defaultVal: [],
		maxLength: undefined,
		required: '0',
	},
	{
		type: 'date',
		typeName: '时间选择器',
		mode: 'YYYY-MM-DD',
		defaultVal: '',
		required: '0',
	},
	{
		type: 'upImage',
		typeName: '图片上传',
		maxLength: 5,
		maxSize: 10,
		defaultVal: [],
		required: '0',
	}
]